package org.nf.web.servlet;

import java.util.Set;

/**
 * @author wangl
 * @date 2024/6/18
 */
public class FrameworkContext {

    private Set<Class<?>> classes;

    private HandlerInterceptorRegistration interceptorRegistration;

    private FrameworkContext(){}

    public static FrameworkContext getInstance() {
        return FrameworkContextHolder.INSTANCE;
    }

    private static class FrameworkContextHolder{
        private static final FrameworkContext INSTANCE = new FrameworkContext();
    }

    public Set<Class<?>> getClasses() {
        return classes;
    }

    public void setClasses(Set<Class<?>> classes) {
        this.classes = classes;
    }

    public HandlerInterceptorRegistration getInterceptorRegistration() {
        return interceptorRegistration;
    }

    public void setInterceptorRegistration(HandlerInterceptorRegistration interceptorRegistration) {
        this.interceptorRegistration = interceptorRegistration;
    }
}
